package service

import (
	"context"
	v1 "platform-sastay-file/api/platform/v1"
)

func (p *PlatformService) GetLoadBalanceCluster(ctx context.Context, req *v1.GetLoadBalanceClusterRequest) (*v1.GetLoadBalanceClusterResponse, error) {
	url, err := p.cu.GetLoadBalanceURL(ctx, req.Name)
	if err != nil {
		return nil, err
	}
	return &v1.GetLoadBalanceClusterResponse{Url: url}, nil
}
